home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form fSeek
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "Seek Parameters"
- ClientHeight = 1455
- ClientLeft = 1440
- ClientTop = 2595
- ClientWidth = 4335
- Height = 1860
- Left = 1380
- LinkTopic = "Form2"
- ScaleHeight = 1455
- ScaleWidth = 4335
- Top = 2250
- Width = 4455
- Begin CommandButton CancelBtn
- Cancel = -1 'True
- Caption = "&Cancel"
- Height = 375
- Left = 2520
- TabIndex = 8
- Top = 960
- Width = 1215
- End
- Begin CommandButton OKBtn
- Caption = "&OK"
- Default = -1 'True
- Height = 375
- Left = 600
- TabIndex = 7
- Top = 960
- Width = 1215
- End
- Begin OptionButton cSeekOp
- BackColor = &H00C0C0C0&
- Caption = "="
- ForeColor = &H00000000&
- Height = 255
- Index = 0
- Left = 1080
- TabIndex = 5
- Top = 120
- Value = -1 'True
- Width = 495
- End
- Begin OptionButton cSeekOp
- BackColor = &H00C0C0C0&
- Caption = ">="
- ForeColor = &H00000000&
- Height = 255
- Index = 1
- Left = 1680
- TabIndex = 4
- TabStop = 0 'False
- Top = 120
- Width = 615
- End
- Begin OptionButton cSeekOp
- BackColor = &H00C0C0C0&
- Caption = "<="
- ForeColor = &H00000000&
- Height = 255
- Index = 2
- Left = 2400
- TabIndex = 3
- TabStop = 0 'False
- Top = 120
- Width = 615
- End
- Begin OptionButton cSeekOp
- BackColor = &H00C0C0C0&
- Caption = ">"
- ForeColor = &H00000000&
- Height = 255
- Index = 3
- Left = 3120
- TabIndex = 2
- TabStop = 0 'False
- Top = 120
- Width = 495
- End
- Begin OptionButton cSeekOp
- BackColor = &H00C0C0C0&
- Caption = "<"
- ForeColor = &H00000000&
- Height = 255
- Index = 4
- Left = 3720
- TabIndex = 1
- TabStop = 0 'False
- Top = 120
- Width = 495
- End
- Begin TextBox cSeekValue
- Height = 285
- Left = 1080
- TabIndex = 0
- Tag = "OLS"
- Top = 480
- Width = 3135
- End
- Begin Label ValLabel
- BackColor = &H00C0C0C0&
- Caption = "Value:"
- Height = 255
- Left = 120
- TabIndex = 9
- Top = 480
- Width = 735
- End
- Begin Label OpLabel
- BackColor = &H00C0C0C0&
- Caption = "Operator:"
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 120
- Width = 855
- End
- Sub CancelBtn_Click ()
- gstSeekValue = NULL_STR
- cSeekValue.SetFocus
- Me.Hide
- End Sub
- Sub cSeekOp_Click (Index As Integer)
- cSeekValue.SetFocus
- End Sub
- Sub cSeekValue_Change ()
- If Len(cSeekValue) = 0 Then
- OKBtn.Enabled = False
- Else
- OKBtn.Enabled = True
- End If
- End Sub
- Sub Form_Load ()
- Left = (Screen.Width - Width) / 2
- Top = (Screen.Height - Height) / 2
- End Sub
- Sub Form_Paint ()
- Outlines Me
- End Sub
- Sub OKBtn_Click ()
- If cSeekOp(0) = True Then
- gstSeekOperator = "="
- ElseIf cSeekOp(1) = True Then
- gstSeekOperator = ">="
- ElseIf cSeekOp(2) = True Then
- gstSeekOperator = "<="
- ElseIf cSeekOp(3) = True Then
- gstSeekOperator = ">"
- ElseIf cSeekOp(4) = True Then
- gstSeekOperator = "<"
- End If
- gstSeekValue = cSeekValue
- cSeekValue.SetFocus
- Me.Hide
- End Sub
-